python trick question